package com.legendshop.openportal.sdk.model.request;

import com.legendshop.openportal.sdk.annotation.EnumValid;
import com.legendshop.openportal.sdk.model.BaseRequest;
import com.legendshop.openportal.sdk.model.constants.MessageTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import static com.legendshop.openportal.sdk.model.constants.ApiPathConstants.GET_MESSAGE;

/**
 * 获取消息请求
 **/

@Data
@ApiModel(value = "获取消息")
public class MessageGetRequest extends BaseRequest {

	private static final long serialVersionUID = 8113213061813570606L;

	/**
	 * 推送类型。
	 * 支持的参考枚举值：MessageTypeEnum
	 */
	@ApiModelProperty(value = "消息类型" )
	@EnumValid(target = MessageTypeEnum.class, message = "消息类型不正确")
	private Integer type;

	/**
	 * 业务ID， 例如订单ID，商品ID，售后单ID等
	 */
	@ApiModelProperty(value = "业务ID" )
	private String businessId;

	@Override
	@ApiModelProperty(hidden = true)
	public String getApiPath() {
		return GET_MESSAGE;
	}
}
